package com.example.mainactivity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.example.muachung.R;
import com.smartservice.ui.Home;

public class MainActivity extends ActionBarActivity {

	Button btnDangNhap;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);

//	    if(getIntent().getBooleanExtra("Exit me", false)){
//	        finish();
//	        return; // add this to prevent from doing unnecessary stuffs
//	    }
		Control();
		btnDangNhap.setOnClickListener(new OnClickListener() {
			
			@Override
		public void onClick(View v) {

				Intent intent =new Intent(MainActivity.this, Home.class);
				startActivity(intent);
				finish();
			}
	});
		
	
	}
	private void Control() {
		// TODO Auto-generated method stub
		btnDangNhap= (Button) findViewById(R.id.btnDangNhap);
	}

	
}
